// const fs=require('fs');
//
// fs.writeFile('./test','This is a test',{encoding:'utf8'},(err)=>{
// 	if(err){console.log(err)}
//
// 	console.log('done')
// })

const fs=require('fs');

const content = Buffer.from('this is a test.');

fs.writeFile('./test','abcdz',(err)=>{
	if(err){console.log(err)}
	console.log('done')
})